package PTA.javabianchengjichu2;

import java.util.Scanner;

public class ex31 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
      double a= sc.nextDouble();
      double b = sc.nextDouble();
      double c = sc.nextDouble();
      if(a>=1&&a<=200||b>=1&&b<=200||c>=1&&c<=200){
if(!issanjiao(a,b,c)){
    System.out.println("Not a triangle");
}else{
    System.out.println("General triangle");
}
if(isdengbian(a,b,c)){
    System.out.println("Equilateral triangle");
}
if(isdengyaozhijiao(a,b,c)){
    System.out.println("Isosceles right-angled triangle");
}
if(isdengyao(a,b,c)){
    System.out.println("Isosceles triangle");
}
if(iszhijiao(a,b,c)){
    System.out.println("Right-angled triangle");
}

      }else{
          System.out.println("Wrong Format");
      }



    }
    public static boolean issanjiao(double x,double y,double z){
        if(x+y>z&&x+z>y&&y+z>x){
            return  true;
        }
        return false;

    }
    public static boolean isdengbian(double x,double y,double z){
if(x==y&&y==z){
    return true;
}
return false;
    }
    public static boolean isdengyaozhijiao(double x,double y,double z){
if(x==y&&x*x+y+y==z*z||x==z&&x*x+z*z==y*y||y==z&&y*y+z*z==x*x){
    return true;
}
return  false;
    }
    public static boolean isdengyao(double x,double y,double z){
if(x==y||x==z||y==z){
    return true;
}
return  false;
    }
    public static boolean iszhijiao(double x,double y,double z){
if(x*x+y*y==z*z||x*x+z*z==y*y||y*y+z*z==x*x){
    return  true;

}
return false;
    }

}
